package Interpreter;

public class FromNode implements DBNode {
    private String dbName;
    private DBNode toNode = new ToNode();
    @Override
    public void intperpret(Context context) throws Exception {
        context.skipToken("FROM");
        dbName = context.currentToken();
        context.nextToken();
        toNode.intperpret(context);
    }
    @Override
    public String toString() {
        return "from " + dbName + toNode.toString();
    }
}
